<%
    var obj={pageTitle:"邮件发送"}
%>
{{include "../layout_header.html"}}
<div class=" container">
    <div class=" page-header">
        <h2 class=" text-center text-primary">邮件发送</h2>
    </div>
    <form id="sendMailForm" action="/customerInfo/doSendMail" method="POST" class=" form-horizontal">
        <div class=" form-group">
            <label for="" class=" control-label col-sm-2">收件地址</label>
            <div class=" col-sm-8">
                <input value="{{mailAddr.toString()}}" name="emailaddress" type="text" class=" form-control"  data-rule-required="true" data-rule-email="true" placeholder="请输入邮件地址" >
            </div>
            <div class="col-s-2"></div> 
        </div>
        <div class=" form-group">
            <label for="" class=" control-label col-sm-2">邮件主题</label>
            <div class=" col-sm-8">
                <input name="emailaddress" type="text" class=" form-control"  data-rule-required="true" placeholder="请输入邮件主题" >
            </div>
            <div class="col-s-2"></div> 
        </div>
        <div class=" form-group">
            <label for="" class=" control-label col-sm-2">邮件内容</label>
            <div class=" col-sm-8">
                <div class="mailContent" id="mailContent"></div> 
            </div>
            <div class="col-s-2"></div> 
        </div>
        <div class=" form-group">
            <div class=" col-sm-7 col-sm-offset-2">
                <button type="submit" class=" btn btn-primary">
                    <span class=" glyphicon glyphicon-send"></span>发送邮件
                </button>
                <button  type="button"  onclick="history.back()" class=" btn btn-danger">
                    <span class=" glyphicon glyphicon-list"></span>返回列表
                </button>
            </div>
        </div>
        
    </form>
</div>
<script type="text/javascript" src="/public/js/release/wangEditor.min.js"></script>
<script type="text/javascript">
    $(function(){
        $("#sendMailForm").validate({
            errorPlacement: function (error, element) {
                error.appendTo(element.parent().next());
            },
            errorClass: "text-danger"
        });
        var E = window.wangEditor;
        var editor = new E('#mailContent');
        editor.create();
    })
</script>
{{include "../layout_footer.html"}}